import { createApp } from 'vue'
// import './style.css'
import './assets/css/reset.less'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import CardVue from './components/Card.vue';
import Loading from './components/Loading'

//全局组件
 const app = createApp(App);
// 全局定义变量
app.config.globalProperties.$env='dev'
app.config.globalProperties.$filters={
    format<T>(str:T){
        return `inzv-${str}`
    }
}
type Filter = {
    format<T>(str:T):string
}
type Lod = {
    show:()=>void,
    hide:()=>void,
}
declare module 'vue'{
    export interface ComponentCustomProperties{
        $filters: Filter,
        $env: string,
        $loading:Lod
    }
}
app.component('Card',CardVue);
app.use(ElementPlus)
app.use(Loading)
app.mount('#app')
